#coding:utf-8
import zipfile
def exactdb():
    z = zipfile.ZipFile('transzip/trans.zip')
    z.extract('trans.db','.')

def savedb():
    z = zipfile.ZipFile('transzip/trans.zip','w')
    z.write('trans.db',compress_type=zipfile.ZIP_DEFLATED)
